// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizappextendeditorname', 'extendeditortype', 'extensionflag', 'extendeditordescription', 'documentaddress', 'ibizappextendeditorid', 'amount'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizappextendeditorid;
    }
    set srfkey(value: any) {
        this.$DO.ibizappextendeditorid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizappextendeditorname;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizappextendeditorname = value;
    }
    get ibizappextendeditorname() {
        return this.$DO.ibizappextendeditorname;
    }
    set ibizappextendeditorname(value: any) {
        this.$DO.ibizappextendeditorname = value;
    }
    get extendeditortype() {
        return this.$DO.extendeditortype;
    }
    set extendeditortype(value: any) {
        this.$DO.extendeditortype = value;
    }
    get extensionflag() {
        return this.$DO.extensionflag;
    }
    set extensionflag(value: any) {
        this.$DO.extensionflag = value;
    }
    get extendeditordescription() {
        return this.$DO.extendeditordescription;
    }
    set extendeditordescription(value: any) {
        this.$DO.extendeditordescription = value;
    }
    get documentaddress() {
        return this.$DO.documentaddress;
    }
    set documentaddress(value: any) {
        this.$DO.documentaddress = value;
    }
    get ibizappextendeditorid() {
        return this.$DO.ibizappextendeditorid;
    }
    set ibizappextendeditorid(value: any) {
        this.$DO.ibizappextendeditorid = value;
    }
    get amount() {
        return this.$DO.amount;
    }
    set amount(value: any) {
        this.$DO.amount = value;
    }
    // 界面主键标识
    get ibizappextendeditor() {
        return this.$DO.ibizappextendeditorid;
    }

    set ibizappextendeditor(value: any) {
        this.$DO.ibizappextendeditorid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizappextendeditorname: this.$DO.ibizappextendeditorname,
extendeditortype: this.$DO.extendeditortype,
extensionflag: this.$DO.extensionflag,
extendeditordescription: this.$DO.extendeditordescription,
documentaddress: this.$DO.documentaddress,
ibizappextendeditorid: this.$DO.ibizappextendeditorid,
amount: this.$DO.amount,
updatedate: this.$DO.updatedate,
        }
	}

}